layui.config({
    base: '/static/js/',
    version:new Date().getTime()
}).use(['layer'],function () {
    $ = layui.jquery;
    var layer = layui.layer;
    var index = layer.getFrameIndex(window.name); //先得到当前iframe层的索引
    layer.close(index);
    parent.location.reload(true);
});